<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Show package</title>
</h:head>
<h:body>
<p:layoutUnit id="top" position="north" size="15%">
                <p:toolbar>  
    				<p:toolbarGroup align="left">
                	<h3><h:link outcome="home.html" value="TravelDream" /></h3>
                	</p:toolbarGroup>
                  </p:toolbar>	
</p:layoutUnit>
<br/>
<br/>


<h:form>  
<p:panel header="PACKAGE GENERAL INFORMATION">
    <p:dataTable var="package" value="#{savedPackageBean.tempSavedPackage}">  
       
        <p:column headerText="Departure Date">  
            <h:outputText value="#{package.depDate}" />  
        </p:column>  
  
        <p:column headerText="Departure Location">  
            <h:outputText value="#{package.depLocation}" />  
        </p:column>  
  
        <p:column headerText="Arrival Location">  
            <h:outputText value="#{package.arrLocation}" />  
        </p:column>  
  
        <p:column headerText="Return Date">  
            <h:outputText value="#{package.retDate}" />  
        </p:column>  
    </p:dataTable> 
    </p:panel>
    <br/> 
    <p:panel header="OUTBOUND FLIGHT" rendered="#{savedPackageBean.savedPackage.flight1 != -1}">
    
    <p:dataTable var="Depflight" value="#{savedPackageBean.selectedFlight}" rendered="#{savedPackageBean.savedPackage.flight1 != -1}">  
    
    	 <p:column headerText="Departure Time">  
            <h:outputText value="#{Depflight.date_Time}" />  
        </p:column> 
        
    	 <p:column headerText="Departure Airport">  
            <h:outputText value="#{Depflight.depAirport}" />  
        </p:column>
        
        <p:column headerText="Arrival Airport">  
            <h:outputText value="#{Depflight.arrAirport}" />  
        </p:column>
        
        <p:column headerText="Flag">  
            <h:outputText value="#{Depflight.flag}" />  
        </p:column>
    
    	<p:column headerText="Price">  
            <h:outputText value="#{Depflight.price}" />  
        </p:column>
        
    </p:dataTable> 
    </p:panel> 
    <br/>
    <p:panel header="RETURN FLIGHT"  rendered="#{savedPackageBean.savedPackage.flight2 != -1}">
    
     <p:dataTable var="Retflight" value="#{savedPackageBean.selectedRetFlight}">  
    
    	 <p:column headerText="Departure Time">  
            <h:outputText value="#{Retflight.date_Time}" />  
        </p:column>
    	 
    	 <p:column headerText="Departure Airport">  
            <h:outputText value="#{Retflight.depAirport}" />  
        </p:column>
        
        <p:column headerText="Arrival Airport">  
            <h:outputText value="#{Retflight.arrAirport}" />  
        </p:column>
        
        <p:column headerText="Flag">  
            <h:outputText value="#{Retflight.flag}" />  
        </p:column>
    
    	<p:column headerText="Price">  
            <h:outputText value="#{Retflight.price}" />  
        </p:column>
        
    </p:dataTable>  
    </p:panel>
    <br/>
    <p:panel header="HOTEL" rendered="#{savedPackageBean.savedPackage.hotel != -1}">
    
    <p:dataTable var="Hotel" value="#{savedPackageBean.selectedHotel}">  
    
    	 <p:column headerText="Name">  
            <h:outputText value="#{Hotel.name}" />  
        </p:column>
    	 
    	 <p:column headerText="Address">  
            <h:outputText value="#{Hotel.address}" />  
        </p:column>
        
        <p:column headerText="Cap">  
            <h:outputText value="#{Hotel.cap}" />  
        </p:column>
        
        <p:column headerText="Category">  
            <h:outputText value="#{Hotel.category}" />  
        </p:column>
    
    	<p:column headerText="Country">  
            <h:outputText value="#{Hotel.country}" />  
        </p:column>
        
        <p:column headerText="City">  
            <h:outputText value="#{Hotel.city}" />  
        </p:column>
        
        <p:column headerText="Price">  
            <h:outputText value="#{Hotel.price_Night}" />  
        </p:column>
        
        <p:column headerText="Web-site">  
            <h:outputText value="#{Hotel.website}" />  
        </p:column>
        
        <p:column headerText="Description">  
            <h:outputText value="#{Hotel.description}" />  
        </p:column>
    </p:dataTable>
    </p:panel> 
    <br/>
    <p:panel header=" EXCURSIONS" rendered="#{!savedPackageBean.selectedExcursionsList.isEmpty()}">
   
    <p:dataTable var="Excursion" value="#{savedPackageBean.selectedExcursionsList}">  
    
    	 <p:column headerText="Name">  
            <h:outputText value="#{Excursion.name}" />  
        </p:column>
    
    	<p:column headerText="City">  
            <h:outputText value="#{Excursion.city}" />  
        </p:column>
        
        <p:column headerText="Date">  
            <h:outputText value="#{Excursion.date}" />  
        </p:column>
        
        <p:column headerText="Price">  
            <h:outputText value="#{Excursion.price}" />  
        </p:column>
        
        <p:column headerText="Web-site">  
            <h:outputText value="#{Excursion.website}" />  
        </p:column>
        
        <p:column headerText="Type">  
            <h:outputText value="#{Excursion.type}" />  
        </p:column>
        
        <p:column headerText="Description">  
            <h:outputText value="#{Excursion.description}" />  
        </p:column>
    </p:dataTable> 
    </p:panel>
    
</h:form>  
<br/>
<br/>
<h3>JOIN THE PACKAGE: GO TO HOMEPAGE TO LOG IN OR TO REGISTER YOURSELF!</h3>
<h3><p:commandButton action="home.html" value="HOMEPAGE" /></h3>
</h:body>
</html>